import request from '@/utils/request'

// 查询立杆节点列表
export function listPoles(query) {
  return request({
    url: '/iot/poles/list',
    method: 'get',
    params: query
  })
}

// 查询立杆节点详细
export function getPoles(id) {
  return request({
    url: '/iot/poles/' + id,
    method: 'get'
  })
}

// 新增立杆节点
export function addPoles(data) {
  return request({
    url: '/iot/poles',
    method: 'post',
    data: data
  })
}

// 修改立杆节点
export function updatePoles(data) {
  return request({
    url: '/iot/poles',
    method: 'put',
    data: data
  })
}

// 删除立杆节点
export function delPoles(id) {
  return request({
    url: '/iot/poles/' + id,
    method: 'delete'
  })
}
